package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.LiveEntity;
import yf.mall.vo.LiveVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
import java.util.Map;

/**
 * 直播Dao
 *
 *
 *
 * @date Thu Sep 10 11:00:34 CST 2020
 */
@Mapper
public interface LiveDao extends BaseDao<LiveEntity> {

    List<LiveVo> findVo(LiveVo vo);

    LiveVo getVo(Long id);

    void saveGoods(@Param("liveId")Long liveId,@Param("goodsId")Long goodsId);

    void updateByLiveId(@Param("LiveId")Long liveId,@Param("goodsId")Long goodsId);

    void deleteByLiveId(Long liveId);

    void deleteByLiveIdBatch(Long[]ids);

    List<Long> findByLiveId(Long liveId);

    List<Long> findByGoodsId(Long goodsId);

    List<LiveEntity> getList();


}
